package com.friday.bo.impl;


import com.friday.dao.EmployeeDao;
import com.friday.dao.impl.EmployeeDaoImpl;
import com.friday.po.Employee;

public class UtilBo  {
	private static EmployeeDao emdao = new EmployeeDaoImpl();
	
	public static String queryDepartmentByEmployeeId(String id) throws Exception {
		Employee employee = emdao.queryEmployeeById(id);
		String department = employee.getDepartment();
		return department;
	}
	
	public static String queryNameByEmployeeId(String id) throws Exception {
		Employee employee = emdao.queryEmployeeById(id);
		String name = employee.getName();
		return name;
	}

}
